package cn.kgc.ubagnet.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderdetailsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderdetailsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRealitypayIsNull() {
            addCriterion("Realitypay is null");
            return (Criteria) this;
        }

        public Criteria andRealitypayIsNotNull() {
            addCriterion("Realitypay is not null");
            return (Criteria) this;
        }

        public Criteria andRealitypayEqualTo(Double value) {
            addCriterion("Realitypay =", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayNotEqualTo(Double value) {
            addCriterion("Realitypay <>", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayGreaterThan(Double value) {
            addCriterion("Realitypay >", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayGreaterThanOrEqualTo(Double value) {
            addCriterion("Realitypay >=", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayLessThan(Double value) {
            addCriterion("Realitypay <", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayLessThanOrEqualTo(Double value) {
            addCriterion("Realitypay <=", value, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayIn(List<Double> values) {
            addCriterion("Realitypay in", values, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayNotIn(List<Double> values) {
            addCriterion("Realitypay not in", values, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayBetween(Double value1, Double value2) {
            addCriterion("Realitypay between", value1, value2, "realitypay");
            return (Criteria) this;
        }

        public Criteria andRealitypayNotBetween(Double value1, Double value2) {
            addCriterion("Realitypay not between", value1, value2, "realitypay");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("createDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("createDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("createDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andPaydateIsNull() {
            addCriterion("payDate is null");
            return (Criteria) this;
        }

        public Criteria andPaydateIsNotNull() {
            addCriterion("payDate is not null");
            return (Criteria) this;
        }

        public Criteria andPaydateEqualTo(Date value) {
            addCriterion("payDate =", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateNotEqualTo(Date value) {
            addCriterion("payDate <>", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateGreaterThan(Date value) {
            addCriterion("payDate >", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateGreaterThanOrEqualTo(Date value) {
            addCriterion("payDate >=", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateLessThan(Date value) {
            addCriterion("payDate <", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateLessThanOrEqualTo(Date value) {
            addCriterion("payDate <=", value, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateIn(List<Date> values) {
            addCriterion("payDate in", values, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateNotIn(List<Date> values) {
            addCriterion("payDate not in", values, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateBetween(Date value1, Date value2) {
            addCriterion("payDate between", value1, value2, "paydate");
            return (Criteria) this;
        }

        public Criteria andPaydateNotBetween(Date value1, Date value2) {
            addCriterion("payDate not between", value1, value2, "paydate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateIsNull() {
            addCriterion("chengjiaoDate is null");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateIsNotNull() {
            addCriterion("chengjiaoDate is not null");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateEqualTo(Date value) {
            addCriterion("chengjiaoDate =", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateNotEqualTo(Date value) {
            addCriterion("chengjiaoDate <>", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateGreaterThan(Date value) {
            addCriterion("chengjiaoDate >", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateGreaterThanOrEqualTo(Date value) {
            addCriterion("chengjiaoDate >=", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateLessThan(Date value) {
            addCriterion("chengjiaoDate <", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateLessThanOrEqualTo(Date value) {
            addCriterion("chengjiaoDate <=", value, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateIn(List<Date> values) {
            addCriterion("chengjiaoDate in", values, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateNotIn(List<Date> values) {
            addCriterion("chengjiaoDate not in", values, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateBetween(Date value1, Date value2) {
            addCriterion("chengjiaoDate between", value1, value2, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andChengjiaodateNotBetween(Date value1, Date value2) {
            addCriterion("chengjiaoDate not between", value1, value2, "chengjiaodate");
            return (Criteria) this;
        }

        public Criteria andAddressidIsNull() {
            addCriterion("addressid is null");
            return (Criteria) this;
        }

        public Criteria andAddressidIsNotNull() {
            addCriterion("addressid is not null");
            return (Criteria) this;
        }

        public Criteria andAddressidEqualTo(String value) {
            addCriterion("addressid =", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidNotEqualTo(String value) {
            addCriterion("addressid <>", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidGreaterThan(String value) {
            addCriterion("addressid >", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidGreaterThanOrEqualTo(String value) {
            addCriterion("addressid >=", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidLessThan(String value) {
            addCriterion("addressid <", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidLessThanOrEqualTo(String value) {
            addCriterion("addressid <=", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidLike(String value) {
            addCriterion("addressid like", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidNotLike(String value) {
            addCriterion("addressid not like", value, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidIn(List<String> values) {
            addCriterion("addressid in", values, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidNotIn(List<String> values) {
            addCriterion("addressid not in", values, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidBetween(String value1, String value2) {
            addCriterion("addressid between", value1, value2, "addressid");
            return (Criteria) this;
        }

        public Criteria andAddressidNotBetween(String value1, String value2) {
            addCriterion("addressid not between", value1, value2, "addressid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userid is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userid is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("userid =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("userid <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("userid >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("userid >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("userid <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("userid <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("userid in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("userid not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("userid between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("userid not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andScrap1IsNull() {
            addCriterion("scrap1 is null");
            return (Criteria) this;
        }

        public Criteria andScrap1IsNotNull() {
            addCriterion("scrap1 is not null");
            return (Criteria) this;
        }

        public Criteria andScrap1EqualTo(String value) {
            addCriterion("scrap1 =", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1NotEqualTo(String value) {
            addCriterion("scrap1 <>", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1GreaterThan(String value) {
            addCriterion("scrap1 >", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1GreaterThanOrEqualTo(String value) {
            addCriterion("scrap1 >=", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1LessThan(String value) {
            addCriterion("scrap1 <", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1LessThanOrEqualTo(String value) {
            addCriterion("scrap1 <=", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1Like(String value) {
            addCriterion("scrap1 like", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1NotLike(String value) {
            addCriterion("scrap1 not like", value, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1In(List<String> values) {
            addCriterion("scrap1 in", values, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1NotIn(List<String> values) {
            addCriterion("scrap1 not in", values, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1Between(String value1, String value2) {
            addCriterion("scrap1 between", value1, value2, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap1NotBetween(String value1, String value2) {
            addCriterion("scrap1 not between", value1, value2, "scrap1");
            return (Criteria) this;
        }

        public Criteria andScrap2IsNull() {
            addCriterion("scrap2 is null");
            return (Criteria) this;
        }

        public Criteria andScrap2IsNotNull() {
            addCriterion("scrap2 is not null");
            return (Criteria) this;
        }

        public Criteria andScrap2EqualTo(String value) {
            addCriterion("scrap2 =", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2NotEqualTo(String value) {
            addCriterion("scrap2 <>", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2GreaterThan(String value) {
            addCriterion("scrap2 >", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2GreaterThanOrEqualTo(String value) {
            addCriterion("scrap2 >=", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2LessThan(String value) {
            addCriterion("scrap2 <", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2LessThanOrEqualTo(String value) {
            addCriterion("scrap2 <=", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2Like(String value) {
            addCriterion("scrap2 like", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2NotLike(String value) {
            addCriterion("scrap2 not like", value, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2In(List<String> values) {
            addCriterion("scrap2 in", values, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2NotIn(List<String> values) {
            addCriterion("scrap2 not in", values, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2Between(String value1, String value2) {
            addCriterion("scrap2 between", value1, value2, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap2NotBetween(String value1, String value2) {
            addCriterion("scrap2 not between", value1, value2, "scrap2");
            return (Criteria) this;
        }

        public Criteria andScrap3IsNull() {
            addCriterion("scrap3 is null");
            return (Criteria) this;
        }

        public Criteria andScrap3IsNotNull() {
            addCriterion("scrap3 is not null");
            return (Criteria) this;
        }

        public Criteria andScrap3EqualTo(String value) {
            addCriterion("scrap3 =", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3NotEqualTo(String value) {
            addCriterion("scrap3 <>", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3GreaterThan(String value) {
            addCriterion("scrap3 >", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3GreaterThanOrEqualTo(String value) {
            addCriterion("scrap3 >=", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3LessThan(String value) {
            addCriterion("scrap3 <", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3LessThanOrEqualTo(String value) {
            addCriterion("scrap3 <=", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3Like(String value) {
            addCriterion("scrap3 like", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3NotLike(String value) {
            addCriterion("scrap3 not like", value, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3In(List<String> values) {
            addCriterion("scrap3 in", values, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3NotIn(List<String> values) {
            addCriterion("scrap3 not in", values, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3Between(String value1, String value2) {
            addCriterion("scrap3 between", value1, value2, "scrap3");
            return (Criteria) this;
        }

        public Criteria andScrap3NotBetween(String value1, String value2) {
            addCriterion("scrap3 not between", value1, value2, "scrap3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}